package com.hewl.shiro.admin.entity;

import java.util.Date;
import java.util.Set;

import com.hewl.config.base.BaseEntity;

public class SysUser extends BaseEntity<SysUser> {
	
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;

    private String nickname;

    private String username;

    private String password;

    private String lastLoginIp;

    private Date lastLoginTime;

    private Boolean status;

    private Set<String> roleStr;
    
    private Set<String> permissionStr;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp == null ? null : lastLoginIp.trim();
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

	public Set<String> getRoleStr() {
		return roleStr;
	}

	public void setRoleStr(Set<String> roleStr) {
		this.roleStr = roleStr;
	}

	public Set<String> getPermissionStr() {
		return permissionStr;
	}

	public void setPermissionStr(Set<String> permissionStr) {
		this.permissionStr = permissionStr;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", nickname=" + nickname + ", username=" + username + ", password=" + password
				+ ", lastLoginIp=" + lastLoginIp + ", lastLoginTime=" + lastLoginTime + ", status=" + status
				+ ", createBy=" + createBy + ", createDate=" + createDate + ", modifyBy=" + modifyBy + ", modifyDate="
				+ modifyDate + ", isDelete=" + isDelete + ", roleStr=" + roleStr + ", permissionStr=" + permissionStr
				+ "]";
	}
    
}